/**
 * 
 */
package com.anduinslegacy;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.anduinslegacy.armory.CharacterFactory;

/**
 * @author Stephen Jennings
 *
 */
public class MainServlet extends HttpServlet {

	/**
	 * 
	 */
	private static final long serialVersionUID = -7963574920528980682L;

	@Override
	protected void service(HttpServletRequest req, HttpServletResponse resp)
			throws ServletException, IOException {		
		CharacterFactory.create(req.getParameter("name"), Integer.parseInt(req.getParameter("points")));
		resp.sendRedirect("/test/test.jsp?show=" + req.getParameter("show"));
	}	
}
